﻿namespace Ross.EntityFramework.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class addEntity : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Users", "Email", c => c.String(maxLength: 50));
            AddColumn("dbo.Users", "Telphone", c => c.String(maxLength: 50));
            AddColumn("dbo.Users", "GroupName", c => c.String(maxLength: 20));
            AddColumn("dbo.Users", "EmpID", c => c.String(maxLength: 20));
            AddColumn("dbo.Users", "Points", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            AddColumn("dbo.Users", "InActive", c => c.Boolean(nullable: false));
            AddColumn("dbo.Users", "CommentText", c => c.String(maxLength: 128));
            AddColumn("dbo.Users", "CreateTime", c => c.DateTime(nullable: false));
            AddColumn("dbo.Users", "Role", c => c.String(nullable: false, maxLength: 20));
            AddColumn("dbo.Users", "StudyTimes", c => c.Decimal(nullable: false, precision: 18, scale: 2));
        }
        
        public override void Down()
        {
            DropColumn("dbo.Users", "StudyTimes");
            DropColumn("dbo.Users", "Role");
            DropColumn("dbo.Users", "CreateTime");
            DropColumn("dbo.Users", "CommentText");
            DropColumn("dbo.Users", "InActive");
            DropColumn("dbo.Users", "Points");
            DropColumn("dbo.Users", "EmpID");
            DropColumn("dbo.Users", "GroupName");
            DropColumn("dbo.Users", "Telphone");
            DropColumn("dbo.Users", "Email");
        }
    }
}
